package com.project.fortuneteller.utils;

import java.util.HashMap;
import java.util.Map;

/**
 *  12 天干地
 */
public class Branche12Util {
    /**
     * 12 地支对应
     */
    public static Map<String, Integer> branche12Map = new HashMap<>(4);
    //                                                     ：子、丑、寅、卯、辰、巳、午 、未 、申、酉、戌、亥：子、丑、寅、卯、辰、巳、午、未、申、酉、戌、亥
    public static String[] branche12List = new String[]{"", "子", "丑", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥"};

    public static String[] UDayList = new String[]{"", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"};
    /**
     *
     */
    static {

        int i = 0;

        for(String val : branche12List){
           branche12Map.put(val,i);
           i++;
        }

    }



    public static String[]  Tobranche12List = new String[]{"", "子",  "子", "丑","丑",  "寅", "寅", "卯", "卯", "辰","辰",
            "辰","辰",  "巳", "巳","午","午", "未","未", "申","申", "酉","酉", "戌", "戌", "亥","亥"};
    public static Integer[]  ToNumber12List = new Integer[]{0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12};


 }
